interface_sources = [
  '../../../../main.cpp',
  'test_board.cpp',
  'test_network_adapter.cpp',
  'test_network_port.cpp',
  'test_optical_module.cpp',
  'test_pcie_device.cpp',
  '../../../../libraries/ncsi_over_mctp/mock_mctp.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/board.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_adapter.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_adapter/cooling.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_adapter/fault_status.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_adapter/log_collection.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_port.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_port/link_info.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_port/metrics.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_port/data_center_bridging.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/network_port/lldp_receive.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/optical_module.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/optical_module/cooling.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/optical_module/current.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/optical_module/power.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/optical_module/status.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/optical_module/voltage.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/pcie_device.cpp',
  '../../../../../drivers/pcie_nic_card/hisi/interface/pcie_device/bandwidth.cpp',
]

test_hisi_interface = executable(
  'test_hisi_interface',
  interface_sources,
  include_directories: [
    include_directories('.'),
    include_directories('../..'),
    include_directories('../../../../../drivers/pcie_nic_card/hisi'),
    include_directories('../../../../../drivers/internal'),
    include_directories('../../../../../include'),
    include_directories('../../../../../gen'),
    include_directories('../../../../../libraries'),
  ],
  dependencies: [
    gtest_dep,
    test_utilities_dep,
    test_utils_dep,
    libmcpp_deps,
    libsmbus_dep,
    libncsi_over_mctp_dep,
    libmctp_dep,
    dev_deps,
  ],
  cpp_args: ['-DUNIT_TEST'],
  install: false,
)

test('test_hisi_interface', test_hisi_interface, suite: 'pcie_nic_card_hisi', timeout: 300, is_parallel: false)

